import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
import { CatsMember } from '../cats/cats.entity';
@Entity()
export class Master {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  name: string;

  @Column()
  age: number;

  @Column({
    // type: 'text',
    // unique: true,
    nullable: true,
  })
  like: string;

  @OneToMany((type) => CatsMember, (CatsMember) => CatsMember.master)
  catsMember: CatsMember[];
}
